package admin.server.model.param;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 修改用户名密码参数
 * Created by zgb on 2019/10/9.
 */
@Schema(description = "更新用户 参数对象")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class UpdateAdminPasswordParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotEmpty
    @Schema(description = "用户名", required = true)
    private String username;
    @NotEmpty
    @Schema(description = "旧密码", required = true)
    private String oldPassword;
    @NotEmpty
    @Schema(description = "新密码", required = true)
    private String newPassword;
}
